{// 引入标签库 }

<tagLib name="fanwe" />

<include file="Public:header" />

<load href="__TMPL__ThemeFiles/Js/jquery.js" />

<load href="__TMPL__ThemeFiles/Js/tabs.js" />

<load href="__TMPL__ThemeFiles/Js/collect.js" />

<div id="main" class="main">

<div class="content">

<div class="title">{$Think.lang.ADD_DATA} [ <a href="{:u($module_name.'/index')}">{$Think.lang.BACK_LIST}</a> ]</div>

<div id="result" class="result none"></div>

<form method='post' id="form" name="form" action="{:u($module_name.'/update')}" enctype="multipart/form-data">

<ul class="conf_btns">

	<li>{$Think.lang.TAB_SITE}</li>

	<li>{$Think.lang.TAB_COLLECT_URL}</li>

</ul>

<div class="conf_tabs">

<table cellpadding=0 cellspacing=0 class="conf_table dataEdit" >

	<tr>

		<td class="tRight" width="120">{$Think.lang.NAME}：</td>

		<td class="tLeft">

        	<input type="text" name="name" id="name" class="bLeftRequire" value="{$vo.name}" />

        </td>

	</tr>

    <tr>

		<td class="tRight" width="120">{$Think.lang.KEY}：</td>

		<td class="tLeft">

			<input type="text" name="rule_key" id="rule_key" class="bLeftRequire" value="{$vo.rule_key}" />&nbsp;<span style="color:#f00; display:none" id="key-exists">{$Think.lang.KEY_EXISTS}</span>

		</td>

	</tr>

	<tr>

		<td class="tRight">{$Think.lang.SORT}：</td>

		<td class="tLeft"><input type="text" value="{$vo.sort}" name="sort" /></td>

	</tr>

</table>

<table cellpadding=0 cellspacing=0 class="conf_table dataEdit" >

	<tr>

		<td class="tRight">{$Think.lang.WEB_TYPE}：</td>

		<td class="tLeft web_type">

			<label><input type="radio" name="web_type" value="1" <if condition="$siteRules.web_type eq 1">checked</if>/>{$Think.lang.WEB_TYPE_0}</label>

			<label><input type="radio" name="web_type" value="2" <if condition="$siteRules.web_type eq 2">checked</if>/>{$Think.lang.WEB_TYPE_1}</label>

		</td>

	</tr>

	<tr class="multi_city collect_type_1">

		<td class="tRight">{$Think.lang.CITY_ARRAY}：</td>

		<td class="tLeft"><input type="text" name="api[city_array]" size="60" value='{$siteRules.city_array}' /></td>

	</tr>

	<tr class="multi_city collect_type_1">

		<td class="tRight">{$Think.lang.CITY_URL_API}：</td>

		<td class="tLeft"><input type="text" name="api[city_url_api]" size="60" value='{$siteRules.city_url_api}' /></td>

	</tr>

	<tr class="multi_city collect_type_1">

		<td class="tRight">{$Think.lang.CITY_NAME_API}：</td>

		<td class="tLeft"><input type="text" name="api[city_name_api]" size="60" value='{$siteRules.city_name_api}' /></td>

	</tr>

    <tr class="multi_city collect_type_1">

		<td colspan="2"><hr/></td>

	</tr>

    <!-- 接口方式 -->

	<tr class="collect_type_1 none">

		<td class="tRight" width="180">{$Think.lang.GROUP_OBJECT_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_object_api]" size="60" value='{$siteRules.group_object_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight">标识码(GOODS.*)：</td>

		<td class="tLeft"><input type="text" name="api[group_key_api]" id="group_key_api" size="60" value='{$siteRules.group_key_api}'/></td>

	</tr>

    <tr class="collect_type_1 none">

		<td class="tRight" width="180">团购城市(GOODS.*)：</td>

		<td class="tLeft"><input type="text" name="api[group_city_api]" size="60" value='{$siteRules.group_city_api}' /></td>

	</tr>
	
	<tr class="collect_type_1 none">

		<td class="tRight" width="180">团购权重(GOODS.*)：</td>

		<td class="tLeft"><input type="text" name="api[group_sort_api]" size="60" value='{$siteRules.group_sort_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight" width="180">{$Think.lang.GROUP_URL_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_url_api]" size="60" value='{$siteRules.group_url_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight" width="180">{$Think.lang.GROUP_NMAE_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_name_api]" size="60" value='{$siteRules.group_name_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight">{$Think.lang.GROUP_IMAGE_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_image_api]" size="60" value='{$siteRules.group_image_api}' /></td>

	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">
        	团购开始时间(GOODS.*)：
        </td>
		<td class="tLeft"><input type="text" name="api[group_begin_time_api]" id="group_begin_time_api" size="60" value='{$siteRules.group_begin_time_api}' /></td>
	</tr>
	<tr class="collect_type_1 none">

		<td class="tRight">

        	{$Think.lang.GROUP_END_TIME_API}：<br/>

        	

        </td>

		<td class="tLeft"><input type="text" name="api[group_end_time_api]" size="60" value='{$siteRules.group_end_time_api}' /></td>

	</tr>

    <tr class="collect_type_1 none">

		<td class="tRight">

        	{$Think.lang.GROUP_END_TIME_EXT_API}<br/>

        	{$Think.lang.GET_NOW_TIME}</td>

		<td class="tLeft"><input type="text" name="api[group_end_time_ext_api]" size="60" value='{$siteRules.group_end_time_ext_api}'/></td>

	</tr>

    <tr class="collect_type_1 none">

		<td class="tRight">{$Think.lang.SET_TIME_ZONE}：</td>

		<td class="tLeft">

        <select name="api[group_end_time_zone_api]">

        	<option value="0">(GMT 0:00) UTC {$Think.lang.NOT_SET_TIME_ZONE}</option>

        	<option value="8" <if condition="$siteRules.group_end_time_zone_api eq 8">selected</if>>(GMT +08:00) 北京,香港,珀斯,新加坡,台北</option>

            <option value="-12" <if condition="$siteRules.group_end_time_zone_api eq -12">selected</if>>GMT -12:00) Eniwetok, Kwajalein</option>

            <option value="-11" <if condition="$siteRules.group_end_time_zone_api eq -11">selected</if>>(GMT -11:00) Midway Island, Samoa</option>

            <option value="-10" <if condition="$siteRules.group_end_time_zone_api eq -10">selected</if>>(GMT -10:00) Hawaii</option>

            <option value="-9" <if condition="$siteRules.group_end_time_zone_api eq -9">selected</if>>(GMT -09:00) Alaska</option>

            <option value="-8" <if condition="$siteRules.group_end_time_zone_api eq -8">selected</if>>(GMT -08:00) Pacific Time (US &amp; Canada), Tijuana</option>

            <option value="-7" <if condition="$siteRules.group_end_time_zone_api eq -7">selected</if>>(GMT -07:00) Mountain Time (US &amp; Canada), Arizona</option>

            <option value="-6" <if condition="$siteRules.group_end_time_zone_api eq -6">selected</if>>(GMT -06:00) Central Time (US &amp; Canada), Mexico City</option>

            <option value="-5" <if condition="$siteRules.group_end_time_zone_api eq -5">selected</if>>(GMT -05:00) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</option>

            <option value="-4" <if condition="$siteRules.group_end_time_zone_api eq -4">selected</if>>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>

            <option value="-3.5" <if condition="$siteRules.group_end_time_zone_api eq -3.5">selected</if>>(GMT -03:30) Newfoundland</option>

            <option value="-3" <if condition="$siteRules.group_end_time_zone_api eq -3">selected</if>>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>

            <option value="-2" <if condition="$siteRules.group_end_time_zone_api eq -2">selected</if>>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>

            <option value="-1" <if condition="$siteRules.group_end_time_zone_api eq -1">selected</if>>(GMT -01:00) Azores, Cape Verde Islands</option>

            <option value="1" <if condition="$siteRules.group_end_time_zone_api eq 1">selected</if>>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>

            <option value="2" <if condition="$siteRules.group_end_time_zone_api eq 2">selected</if>>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>

            <option value="3" <if condition="$siteRules.group_end_time_zone_api eq 3">selected</if>>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>

            <option value="3.5" <if condition="$siteRules.group_end_time_zone_api eq 3.5">selected</if>>(GMT +03:30) Tehran</option>

            <option value="4" <if condition="$siteRules.group_end_time_zone_api eq 4">selected</if>>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>

            <option value="4.5" <if condition="$siteRules.group_end_time_zone_api eq 4.5">selected</if>>(GMT +04:30) Kabul</option>

            <option value="5" <if condition="$siteRules.group_end_time_zone_api eq 5">selected</if>>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>

            <option value="5.5" <if condition="$siteRules.group_end_time_zone_api eq 5.5">selected</if>>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>

            <option value="5.75" <if condition="$siteRules.group_end_time_zone_api eq 5.75">selected</if>>(GMT +05:45) Katmandu</option>

            <option value="6" <if condition="$siteRules.group_end_time_zone_api eq 6">selected</if>>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>

            <option value="6.5" <if condition="$siteRules.group_end_time_zone_api eq 6.5">selected</if>>(GMT +06:30) Rangoon</option>

            <option value="7" <if condition="$siteRules.group_end_time_zone_api eq 7">selected</if>>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>

            <option value="9" <if condition="$siteRules.group_end_time_zone_api eq 9">selected</if>>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>

            <option value="9.5" <if condition="$siteRules.group_end_time_zone_api eq 9.5">selected</if>>(GMT +09:30) Adelaide, Darwin</option>

            <option value="10" <if condition="$siteRules.group_end_time_zone_api eq 10">selected</if>>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>

            <option value="11" <if condition="$siteRules.group_end_time_zone_api eq 11">selected</if>>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>

            <option value="12" <if condition="$siteRules.group_end_time_zone_api eq 12">selected</if>>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>

        </select>

        </td>

	</tr>

    <tr class="collect_type_1 none">

		<td class="tRight">&nbsp;</td>

		<td class="tLeft">

        	{$Think.lang.TIME_ZONE_NOTIC}

        </td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight">{$Think.lang.GROUP_SHOP_PRICE_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_shop_price_api]" size="60" value='{$siteRules.group_shop_price_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight">{$Think.lang.GROUP_MARKET_PRICE_API}：</td>

		<td class="tLeft"><input type="text" name="api[group_market_price_api]" size="60" value='{$siteRules.group_market_price_api}' /></td>

	</tr>

	<tr class="collect_type_1 none">

		<td class="tRight">已购买人数(GOODS.*)：</td>

		<td class="tLeft"><input type="text" name="api[group_bought_api]" id="group_bought_api" size="60" value='{$siteRules.group_bought_api}'/></td>

	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">团购提示(GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_brief_api]" id="group_brief_api" size="60" value='{$siteRules.group_brief_api}'/></td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">团购详细(GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_content_api]" id="group_content_api" size="60" value='{$siteRules.group_content_api}'/></td>
	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">团购商圈(GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_area_api]" id="group_area_api" size="60" value='{$siteRules.group_area_api}'/></td>
	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">&nbsp;</td>
		<td class="tLeft">当API中的商圈不在商家列表中时，使用此设置</td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">商家对像(GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_api]" id="group_shop_api" size="60" value='{$siteRules.group_shop_api}'/></td>
	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">&nbsp;</td>
		<td class="tLeft">当API中的没有商家列表对像时，以下设置可使用GOODS.*</td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">商家名称(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_name_api]" id="group_shop_name_api" size="60" value='{$siteRules.group_shop_name_api}'/></td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">商家地址(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_addr_api]" id="group_shop_addr_api" size="60" value='{$siteRules.group_shop_addr_api}'/></td>
	</tr>
	<tr class="collect_type_1 none">
		<td class="tRight">商家商圈(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_area_api]" id="group_shop_area_api" size="60" value='{$siteRules.group_shop_area_api}'/></td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">商家电话(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_tel_api]" id="group_shop_tel_api" size="60" value='{$siteRules.group_shop_tel_api}'/></td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">地图经度(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_lon_api]" id="group_shop_lon_api" size="60" value='{$siteRules.group_shop_lon_api}'/></td>
	</tr>
    <tr class="collect_type_1 none">
		<td class="tRight">地图纬度(SHOP.*/GOODS.*)：</td>
		<td class="tLeft"><input type="text" name="api[group_shop_lat_api]" id="group_shop_lat_api" size="60" value='{$siteRules.group_shop_lat_api}'/></td>
	</tr>
</table>

<div style="padding:20px 0 0 130px;">

	<input type="hidden" value="{$vo.id}" name="id" id="collect-id" />

	<input type="submit" value="{$Think.lang.SAVE_DATA}" class="button small">

	<input type="reset" class="button small" onclick="resetEditor()" value="{$Think.lang.RESET_DATA}">

</div>

</div>

</form>

</div>

</div>

